function App() {
    const state = 'Hello React';

    function handleClick() {
        console.log('Hello React')
    }

    return <div onClick={handleClick}>
        {state}
    </div>;
}

ReactDOM.createRoot(document.querySelector('#root')).render(
    <App />
);